package com.manor.main.custom;

import com.lin.cardlib.CardSetting;
import com.lin.cardlib.utils.ReItemTouchHelper;

public class MainViewCardSetting extends CardSetting {

    public static final int DEFAULT_TRANSLATE = 10;
    public static final int DEFAULT_SHOW_ITEM = 3;

    /**
     * 设置层叠方向
     *
     * @return
     */
    @Override
    public int getStackDirection() {
        return ReItemTouchHelper.RIGHT;
    }

    /**
     * 设置偏移量
     *
     * @return
     */
    @Override
    public int getCardTranslateDistance() {
        return DEFAULT_TRANSLATE;

    }

    /**
     * 设置滑出时间
     *
     * @return
     */
    @Override
    public int getSwipeOutAnimDuration() {
        return 50;
    }

    /**
     * 设置默认显示几张
     *
     * @return
     */
    public int getShowCount() {

        return DEFAULT_SHOW_ITEM;
    }

}
